﻿CREATE PROCEDURE [dbo].[yaf_attachment_save](
                @MessageID   INT,
                @FileName    NVARCHAR(50),
                @Bytes       INT,
                @ContentType NVARCHAR(50)  = NULL,
                @FileData    IMAGE  = NULL)
AS
    BEGIN
        INSERT INTO yaf_Attachment
                   (MessageID,
                    FileName,
                    Bytes,
                    ContentType,
                    Downloads,
                    FileData)
        VALUES     (@MessageID,
                    @FileName,
                    @Bytes,
                    @ContentType,
                    0,
                    @FileData)
    END


